//
//  LLScanNavigationController.m
//  Weibo
//
//  Created by 李灵斌 on 15-1-31.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import "LLScanNavigationController.h"

@interface LLScanNavigationController ()

@end

@implementation LLScanNavigationController

+ (void)initialize{
    
    UINavigationBar *bar = [UINavigationBar appearance];
    bar.tintColor = [UIColor clearColor];
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.navigationBar setBackgroundImage:[UIImage stretchableImageWithImage:@"qrcode_navigationbar_background"] forBarMetrics:UIBarMetricsDefault];
    
//    self.navigationBar.barStyle = UIBarStyleBlackTranslucent;
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    
    [super pushViewController:viewController animated:YES];
    viewController.hidesBottomBarWhenPushed = YES;
    self.navigationBar.barStyle = UIBarStyleDefault;
}

- (UIViewController *)popViewControllerAnimated:(BOOL)animated{
    
    [self.navigationBar setBackgroundImage:[UIImage stretchableImageWithImage: @"qrcode_navigationbar_background"] forBarMetrics:UIBarMetricsDefault];
   return [super popViewControllerAnimated:YES];
    
}

@end
